<table width="100%" cellpadding="0" cellspacing="0">
	<tbody>
		<tr bgcolor="#F0F0F0">
		  <td height="40" colspan="2"><h3 style="margin-left:5px">All Projects:&nbsp;<?=$this->projectData['pname']?>&nbsp;<font size="1">(Key: &nbsp;<?=$this->projectData['pkey']?>)</font></h3></td>
		</tr>
		<tr>
			<td width="70%" valign="top">
				<table cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td>
							<div><b>Project Lead:&nbsp;</b>&nbsp;<?=$this->projectData['lead']?></div>
							<div><b>URL:</b><a href="<?=$this->projectData['url']?>"><?=$this->projectData['url']?></a></div>
							<div><b>Description:</b></div>
							<div><?=$this->projectData['description']?></div>
							<br>
							<div><a href="#">Create new issue in project <?=$this->projectData['pname']?></a></div>
							<div><a href="#">Administor Project</a></div>
						</td>
					</tr>
				</table>
				<br>
				<table width="98%" cellspacing="0" cellpadding="0" align="center">
				<tbody>
					<tr>
						<td>
							<table align="center" border="0" cellpadding="2" cellspacing="0" width="100%" style="border:0px">
								<tbody>
									<tr>
										<td width="1%"><b>Select:</b>&nbsp;</td>
										<td align="center" bgcolor="#bbbbbb" nowrap="nowrap" width="10%">
												&nbsp;<font color="#ffffff"><b>Open Issues</b></font>&nbsp;
										</td>
										<td align="center" width="10%"><b><a href="<?=$this->baseUrl()?>/project/roadmap/project/<?=$this->projectId?>">Road Map</a></b></td>
										<td align="center" width="10%"><b>Change Log</b></td>
										<td align="center" width="10%"><b>Popular Issues</b></td>
										<td align="center" width="10%"><b>Versions</b></td>
										<td align="center" width="10%"><b><a href="<?=$this->baseUrl()?>/component/view/project/<?=$this->projectId?>">Components</a></b></td>
									</tr>
								</tbody>
							</table>
						</td>
				  </tr>
						<tr>
						<td colspan="2">
							<table width="100%" cellspacing="0" style="border:1px solid #bbbbbb">
								<tbody>
									<tr bgcolor="#f0f0f0">
										<td width="50%">
											<h3>Component</h3>
											<div>(with open issues in each component)</div>
										</td>
										<td>
											<h3>Version</h3>
											<div>(with open issues due to be fixed per version)</div>
										</td>
									</tr>
									<tr>
										<td>
											<table width="98%" cellspacing="0">
												<tbody>
													<?php
														$i = 1; 
														foreach ($this->components as $component) {?>
													<tr <?php if($i%2) { echo 'bgcolor="#ffffff"';} else { echo 'bgcolor="#FAFAFA";';}?>>
														<td><a href="<?=$this->baseUrl()?>/issue/manage/cid/<?=$component['id']?>"><?=$component['cname']?></a></td>
														<td align="right"><?=$component['issues']?></td>
													<tr>
													<?php  
														$i++;
													}?>
												<tbody>
										  </table>
										</td>
										<td>
											<table width="98%" cellspacing="0">
												<tbody>
													<?php
														$i = 1; 
														foreach ($this->components as $component) {?>
													<tr <?php if($i%2) { echo 'bgcolor="#ffffff"';} else { echo 'bgcolor="#FAFAFA";';}?>>
														<td><a href="<?=$this->baseUrl()?>/issue/manage/cid/<?=$component['id']?>"><?=$component['cname']?></a></td>
														<td align="right"><?=$component['issues']?></td>
													<tr>
													<?php  
														$i++;
													}?>
												<tbody>
										  </table>
										</td>
									</tr>
								</tbody>
							</table>
						</td>
					</tr>
				</tbody>
			  </table>
			</td>
			<td width="30%" valign="top" style="background-color:#fffff0;border:1px solid #bbbbbb">
			<h3 style="margin-left:10px;color:#003366;">Project Summary</h3>
			<?php foreach ($this->projectSummary as $summary) {?>
				<table width="90%" align="center" cellpadding="0" cellspacing="0">
					<tbody>
						<tr>
							<td width="1%"><img src="<?=$this->baseUrl().$summary['issueStatusIcon']?>" align="absmiddle" /></td>
							<td nowrap="">&nbsp;<?=$summary['issuestatus']?></td>
							<td><?=$summary['c']?></td>
							<td width="60%">
								<table width="100%" cellpadding="0" cellspacing="0">
									<tr>
										<td width="<?=round($summary['c']/$this->totalIssues*100)?>%">
											<table cellpadding="0" cellspacing="0" width="100%">
												<tr>
													<td bgcolor="#3c78b5">
													<a title="22"><img src="<?=$this->baseUrl()?>/images/spacer.gif" width="100%" height="10"></a>
													</td>
												</tr>
											</table>
										</td>
										<td width="<?php echo (100-round($summary['c']/$this->totalIssues*100))?>">&nbsp;&nbsp;&nbsp;<?=round($summary['c']/$this->totalIssues*100)?>%</td>
									</tr>
								</table>
							</td>
						</tr>
					</tbody>
			  </table>
			  <?php } ?>
			  <h3 style="margin-left:10px;color:#003366;">Open Issues</h3>
			  <?php foreach ($this->openIssues as $issue) { ?>
			  <table width="90%" align="center" cellpadding="0" cellspacing="0">
					<tbody>
						<tr>
							<td width="1%"><img src="<?=$this->baseUrl().$issue['priorityIcon']?>" align="absmiddle" /></td>
							<td nowrap="">&nbsp;<?=$issue['priority']?></td>
							<td><?=$issue['c']?></td>
							<td width="60%">
								<table width="100%" cellpadding="0" cellspacing="0">
									<tr>
										<td width="<?=round($issue['c']/$this->totalIssues*100)?>">
											<table cellpadding="0" cellspacing="0" width="100%">
												<tr>
													<td bgcolor="#3c78b5">
													<a title="2"><img src="<?=$this->baseUrl()?>/images/spacer.gif" width="100%" height="10"></a>
													</td>

												</tr>
											</table>
										</td>
										<td width="<?php echo (100-round($issue['c']/$this->totalIssues*100))?>">&nbsp;&nbsp;&nbsp;<?=round($issue['c']/$this->totalIssues*100)?>%</td>
									</tr>
								</table>
							</td>
						</tr>
					</tbody>
			  </table>
			  <?php } ?>
			</td>
		</tr>
	</tbody>
</table>